const List = () => {
    const todos = [
        { id: 1, name: "第一项" },
        { id: 2, name: "第二项" },
        { id: 3, name: "第三项" },
        { id: 4, name: "第四项" },
        { id: 5, name: "第五项" },
    ];
    return (
        <ul className='list-group'>
            {todos.map((todo) => (
                <li className='list-group-item' key={todo.id}>
                    {todo.name}
                </li>
            ))}
        </ul>
    );
};

export default List;
